/**
 * 
 */
package edu.arizona.bio5.onto.decomposition;

/**
 * @author Pavel Klinov
 *
 */
public class NestedException extends Exception {

	private static final long serialVersionUID = -4551791420995364235L;
	
	private Throwable mCause = null;
	private String mMsg = null;
	
	protected NestedException(Throwable cause, String msg) {
		mCause = cause;
		mMsg = msg;
	}
	
	public Throwable getCause() {
		return mCause;
	}
	
	public String getMessage() {
		return mMsg == null ? mCause.getMessage() : mMsg;
	}
}
